package com.gof.example.decorate;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/6 20:55.
 * haiming.fei@tongdun.cn
 */
public class EncryptionDecorate extends Encryption {

    private Encryption encryption;

    public EncryptionDecorate(Encryption e) {
        this.encryption = e;
    }

    @Override
    String enc(String str) {
        encryption.enc(str);
        return str;
    }
}
